Skip to content

Comments

fix: Fixed editor mode file open failing#634

Merged
benjaminshafii merged 2 commits intodifferent-ai:devfrom
AshhKetchup:fix-editor-mode-file-open-624
Feb 21, 2026
Merged

fix: Fixed editor mode file open failing#634
benjaminshafii merged 2 commits intodifferent-ai:devfrom
AshhKetchup:fix-editor-mode-file-open-624

Conversation

@AshhKetchup
Copy link
Contributor

fix(editor): handle paths with spaces in artifact file open (#624 )

File paths containing spaces (e.g., "Application Support") were being
incorrectly extracted by the artifact path regex, resulting in truncated
paths like "Support/com.differentai.openwork.dev/..." that couldn't be
resolved.

Changes:

  • Add cleanArtifactPath() to detect and fix truncated system paths by
    extracting the relative portion after "workspaces//"
  • Enhance toWorkspaceRelativeForApi() to handle truncated absolute paths
    by finding overlapping suffixes between workspace root and file path
  • Add prerequisite checks in openMarkdownEditor() for client connection
    and workspace ID before attempting to open files
  • Reject paths containing app bundle identifiers (com.*.openwork) as a
    safety check

@vercel
Copy link

vercel bot commented Feb 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openwork-software Ready Ready Preview, Comment Feb 21, 2026 11:57am

@vercel
Copy link

vercel bot commented Feb 21, 2026

@AshhKetchup is attempting to deploy a commit to the 0 Finance Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

@benjaminshafii benjaminshafii merged commit 5699e19 into different-ai:dev Feb 21, 2026
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants